export function timezjs(data) {
	var flag = null;
	var hour = 0;
	var minute = 0;
	var second = 0;
	var time = data;
	flag = setInterval(() => {
		second = second + 1;
		if (second >= 60) {
			second = 0;
			minute = minute + 1;
		}
		if (minute >= 60) {
			minute = 0;
			hour = hour + 1;
		}
		time =
			complZero(hour) +
			":" +
			complZero(minute) +
			":" +
			complZero(second);
			return time
	}, 1000);
}

function complZero(n) {
	return n < 10 ? "0" + n : "" + n;
}
